package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

/**
 * 角色实体类与数据库role表一一映射
 *
 * @author HHLJ
 * @date 2022/03/15
 */
@Table(tableName = "role")
public class Role {
    @PrimaryKey
    @Column(columnName = "id",description = "主键")
    private Integer id;

    @Column(columnName = "role_name",description = "角色名")
    private String roleName;

    public Role() {
    }

    public Role(Integer id, String roleName) {
        this.id = id;
        this.roleName = roleName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
